package cn.txm.org.domain;

import cn.txm.basic.domain.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department  extends BaseDomain{

    private String sn;
    private String name;
    private String dirPath;
    @ApiModelProperty(value="状态",name="state")
    private Integer state;
    private Long manager_id;
    //引用对象
    private Employee manager;
    private Long parent_id;

    //引用对象
    private Department parent;
    /**
     * 站到父亲的角度看孩子
     */
    private List<Department> children = new ArrayList<>();
}
